package com.qcby.lxt.framedemo.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.qcby.lxt.framedemo.entity.QuartzJob;
import com.qcby.lxt.framedemo.util.AjaxResult;


public interface IJobService {
    IPage<QuartzJob> listQuartzJob(String jobName, IPage<QuartzJob> page);
    /**
     * 新增job
     * @param quartz
     * @return
     */
    AjaxResult saveJob(QuartzJob quartz);

    /**
     * 触发job
     * @param jobName
     * @param jobGroup
     * @return
     */
    AjaxResult triggerJob(String jobName, String jobGroup);

    /**
     * 暂停job
     * @param jobName
     * @param jobGroup
     * @return
     */
    AjaxResult pauseJob(String jobName, String jobGroup);

    /**
     * 恢复job
     * @param jobName
     * @param jobGroup
     * @return
     */
    AjaxResult resumeJob(String jobName, String jobGroup);

    /**
     * 移除job
     * @param jobName
     * @param jobGroup
     * @return
     */
    AjaxResult removeJob(String jobName, String jobGroup);
}